package com.kaifamiao.www.demo.Do30;

public class Account {
    //卡号
    private long cardID;

    private String passward;

    private double money;

    private String name;

    @Override
    public String toString(){
        return this.name +"的卡号是"+this.cardID+",账户余额为"+this.money;
    }
    public void show(){
        System.out.println(this.name +"的卡号是"+this.cardID+",密码是"+this.passward+"账户余额为"+this.money);
    }

    //getter/setter方法

    public long getCardID(){
        return cardID;
    }
    public void setCardID(long cardID){
        this.cardID = cardID;
    }
    public String getPassward(){
        return passward;
    }
    public void setPassward(String passward){
        this.passward = passward;
    }
    public double getMoney(){
        return money;
    }
    public void setMoney(double money){
        this.money = money;
    }
    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }


}
